import request from "@/utils/request";
// 请求商品分类列表
const getCateLists = (params = {}) => {
  return request.get("/cateLists", { params });
};
// 新增商品分类
const addCate = (params = {}) => {
  return request.post("/addCate", params);
};
// 获取分类详情
const fetchCateDetail = (id) => request.get(`/detail/${id}`);
// 修改商品分类
const updateCate = (params = {}) => request.put("/updateCate", params);
// 删除商品
const delCate = (id) => request.delete("/delCate", { params: { id } });
export { getCateLists, addCate, fetchCateDetail, updateCate, delCate };
